package com.lhj.es.util;

/**
 * @author linghaijin
 * @date 2021-09-18 9:15
 */
public class TestPrintAbc {

    public static void main(String[] args) {
        PrintAbc printAbc = new PrintAbc();
        new Thread(() -> {
            for (int i = 0; i < 10; i++) {
                printAbc.executeA();
            }
        }, "A").start();

        new Thread(() -> {
            for (int i = 0; i < 10; i++) {
                printAbc.executeB();
            }
        }, "B").start();

        new Thread(() -> {
            for (int i = 0; i < 10; i++) {
                printAbc.executeC();
            }
        }, "C").start();
    }

}
